/// FinanceAgencyTeamCreateDto
class FinanceAgencyTeamCreateDto {
  /// 团队名称
  final String teamName;
  /// 主账号
  final String userName;
  /// 主账号密码
  final String password;
  /// 主账号邮箱
  final String? email;

  FinanceAgencyTeamCreateDto({
    required this.teamName,
    required this.userName,
    required this.password,
    this.email,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['teamName'] = teamName;
    data['userName'] = userName;
    data['password'] = password;
    if (email != null) data['email'] = email;
    return data;
  }

  factory FinanceAgencyTeamCreateDto.fromJson(Map<String, dynamic> json) {
    return FinanceAgencyTeamCreateDto(
      teamName: json['teamName'],
      userName: json['userName'],
      password: json['password'],
      email: json['email'],
    );
  }
}